package com.softdev.pojo;

import com.softdev.common.AbstractBaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@ApiModel("技能")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "skills")
@Proxy(lazy = false)
public class Skill extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = -752793905433532788L;

    @Column(name = "name" , unique = true)
    private String name;

    //技能优先级
    @Column(name = "level")
    private int level;

}
